﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


/**
* @Author: AdinZ
* @Q  Q : 1454269
* @Email:adinz@adinz.com
* @Created: 2014/4/13 20:06:16
*
* */
namespace Novel.Sys.BLL
{
    public class novel_user_info
    {
        Dal.novel_user_info dal = new Dal.novel_user_info();
        public Model.novel_user_info GetModel(int uid)
        {
            return dal.GetModel(uid);
        }
        public Model.novel_user_info GetModel(int uid,string session)
        {
            return dal.GetModel(uid, session);
        }


        /// <summary>
        /// 验证IMEI是否存在
        /// </summary>
        /// <param name="IMEI"></param>
        /// <returns></returns>
        public bool Exists(string IMEI)
        {
            return dal.Exists(IMEI);
        }
        /// <summary>
        /// 加减金币
        /// </summary>
        /// <param name="Uid"></param>
        /// <param name="money"></param>
        /// <param name="b">true 减法,false 加法</param>
        /// <returns></returns>
        public bool UpdateMoney(int Uid, float money, bool b)
        {
            return dal.UpdateMoney(Uid, money, b);
        }
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int Add(Model.novel_user_info model)
        {
            return dal.Add(model);
        }
        public string GetWhere(string strWhere, string keys)
        {
            return dal.GetWhere(strWhere, keys);
        }
        /// <summary>
        /// 根据imei获取uid
        /// </summary>
        /// <param name="imei"></param>
        /// <returns></returns>
        public int ImeiGetUid(string imei)
        {
            return dal.ImeiGetUid(imei);
        }
    }
}
